<?php
class Ngonngu_model extends CI_Model {
    function __construct()
    {
        parent::__construct();
    }
    //Lấy ngôn ngữ
    function dsNgonngu()
    {
        $this->db->select('*');
        $result=$this->db->get('ngonngu');
        return $result->result_array();
    }
    //Lấy ngôn ngữ theo id
    function ngonngu($id)
    {
        $this->db->select('ngonngu');
        $this->db->where('id_ngonngu',$id);
        $querry=$this->db->get('ngonngu');
        $result=$querry->result_array();
        foreach($result as $row);
        return $row['ngonngu'];
    }
}
?>